<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录页面</title>

    <!-- BOOTSTRAP STYLES-->
    <link href="resources/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="resources/assets/css/font-awesome.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
     

</head>
<body style="background-color: #E2E2E2;">
    <div class="container">
        <div class="row text-center " style="padding-top:100px;">
            <div class="col-md-12">
                <img src="resources/assets/img/logo-invoice.png" />
            </div>
        </div>
         <div class="row ">
               
                <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
                           
                            <div class="panel-body">
                                <form role="form" action="" method="post">
                                    <hr />
                                    <h5>输入详细登录</h5>
                                       <br />
                                     <div class="form-group input-group">
                                            <span class="input-group-addon"><i class="fa fa-tag"  ></i></span>
    <input type="text" class="form-control" name="username"  placeholder="姓名 " />
                                        </div>
                                            <div class="form-group input-group">
                                            <span class="input-group-addon"><i class="fa fa-lock"  ></i></span>
    <input type="password" class="form-control" name="password" value="<?php echo (!empty($_COOKIE['password']))?$_COOKIE['password']:''; ?>" placeholder="密码" />
    
      
                                            </div>
                                
                                        <div class="form-group">
                                            <label class="checkbox-inline">
 <input  type="checkbox" name="check" id="check" <?php echo(!empty($_COOKIE['username']))?'checked':''?>
                                                 
                                                  <value="1" /> 记住我
                                            </label>
                                             <label class="checkbox-inline">
<input type="checkbox" name="auto" id="auto" 
<?php echo(!empty($_COOKIE['username']))?'checked':''?>
                                                 
                                                  <value="1" /> 自动登录
                                            </label>

                                            <span class="pull-right">
                                                   <a href="index.html" >忘记密码 ? </a> 
                                            </span>
                                        </div>
                                        
                                     
                                     <input type="submit" value="马上登录" class="btn btn-primary ">    
                                    <hr />
                                    没有注册 ? <a href="index.html" >点击这里 </a> 或者 <a href="index.html">返回</a> 
                                    </form>
                            </div>
                           
                        </div>
                
                
        </div>
    </div>

</body>
</html>
<script type="text/javascript" src="jquery-2.2.3.min.js"></script>
<script type="text/javascript">

$(function(){
    $('#auto').click(function(){
         
         if($(this).is(':checked')){
            
            $(':checkbox[name=check]').prop('checked',true);
        }
    }); 
})








</script>